package com.fujitsu.hope.web.client.requirement.service;

import java.util.List;

import com.extjs.gxt.ui.client.data.BaseTreeModel;
import com.fujitsu.hope.web.client.requirement.model.Label;
import com.fujitsu.hope.web.client.requirement.model.Person;
import com.fujitsu.hope.web.client.requirement.model.Requirement;
import com.fujitsu.hope.web.client.requirement.model.RequirementSearchCondition;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface RequirementServiceAsync {
	public void getDemandList(RequirementSearchCondition condition, AsyncCallback<List<Requirement>> callback) throws Exception;
	public void update(Requirement bean, AsyncCallback<Integer> callback) throws Exception;
	public void getLabelList(String input, AsyncCallback<List<Label>> callback);
	public void getPersonList(String input, AsyncCallback<List<Person>> callback);
	public void getLabelTree(String input, AsyncCallback<BaseTreeModel> callback);
}